class Chain < ActiveRecord::Base
  has_many :routes
  has_many :masterplans
  belongs_to :wall

  def <=>(x) 
    self.number <=> x.number
  end
end
